home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / progut~1 / stdwin.zoo / test / Makefile < prev    next >
Encoding:
Makefile  |  1989-10-18  |  4.6 KB  |  184 lines

  1. # Begin Generic
  2. STDWIN=        ..
  3. CONF=        $(STDWIN)/conf
  4. H=        $(STDWIN)/h
  5. TOOLS=        $(STDWIN)/tools
  6. ALFA=        $(STDWIN)/alfa
  7. MG1=        $(STDWIN)/mg1
  8. X11=        $(STDWIN)/x11
  9. X11LIBS=    $(X11)/lib.a $(LIBX11)
  10. LIBX11=        $(LIBXLIB)/libX11.a
  11. LIBXT=        $(LIBXLIB)/libXaw.a $(LIBXLIB)/libXt.a
  12. XTLIBS=        $(STDWIN)/xt/lib.a $(LIBXT) $(LIBX11)
  13. STUBS=        $(STDWIN)/stubs
  14. INCLUDES=    -I$(H) $(SYSINCLUDES) $(SITEINCLUDES) $(LINCLUDES)
  15. DEFS=        $(SYSDEFS) $(SITEDEFS) $(LDEFS)
  16. CPPFLAGS=    $(DEFS) $(INCLUDES)
  17. OPTIONS=    $(SYSOPTIONS) $(SITEOPTIONS) $(LOPTIONS)
  18. CFLAGS=        $(CPPFLAGS) $(OPTIONS)
  19. LDFLAGS=    $(OPTIONS)
  20. LINTFLAGS=    -bhv
  21. LINT=        lint
  22. # End Generic
  23. LIBX11=        /usr/lib/libX11.a
  24. # Begin Make.conf
  25.  
  26. SRCS=        test0.c test1.c test2.c test3.c test4.c thand.c \
  27.         hello.c bits.c faced.c klok.c charset.c dklok.c vtdemo.c \
  28.         tetris.c testpollevent.c
  29. OBJS=        test0.o test1.o test2.o test3.o test4.o thand.o \
  30.         hello.o bits.o faced.o klok.o charset.o dklok.o vtdemo.o \
  31.         tetris.o testpollevent.c
  32.  
  33. XLIBES=        $(X11LIBS)
  34. ALIBES=        ../alfa/lib.a -ltermlib
  35. MLIBES=        $(MG1)/lib.a $(WINLIBS)
  36. SLIBES=        $(STUBS)/lib.a /usr/alib/libamunix.a
  37.  
  38. all:        allx alla # allm alls
  39. allx:        test0.X test1.X test2.X test3.X test4.X hello.X bits.X \
  40.         charset.X klok.X dklok.X faced.X vtdemo.X \
  41.         tetris.X testpollevent.X
  42. alla:        test0.A test1.A test2.A test3.A test4.A hello.A bits.A \
  43.         charset.A klok.A dklok.A faced.A vtdemo.A tetris.A
  44. allm:        test0.M test1.M test2.M test3.M test4.M hello.M bits.M \
  45.         charset.M klok.M dklok.M faced.M vtdemo.M tetris.M
  46. alls:        test0.S test1.S test2.S test3.S test4.S hello.S bits.S \
  47.         charset.S klok.S dklok.S faced.S vtdemo.S tetris.S
  48.  
  49. test0.X test1.X test2.X test3.X test4.X thand.X \
  50.     hello.X bits.X faced.X klok.X dklok.X vtdemo.X tetris.X: $(XLIBES)
  51.  
  52. test0.S test1.S test2.S test3.S test4.S thand.S \
  53.     hello.S bits.S faced.S klok.S dklok.S vtdemo.S tetris.S: $(SLIBES)
  54.  
  55. .SUFFIXES: .X .A .M .S
  56.  
  57. .o.X:
  58.         $(CC) $(LDFLAGS) $*.o $(XLIBES) -lm -o $*.X
  59.  
  60. .o.A:
  61.         $(CC) $(LDFLAGS) $*.o $(ALIBES) -lm -o $*.A
  62.  
  63. .o.M:
  64.         $(CC) $(LDFLAGS) $*.o $(MLIBES) -lm -o $*.M
  65.  
  66. .o.S:
  67.         $(CC) $(LDFLAGS) $*.o $(SLIBES) -lm -o $*.S
  68.  
  69. DESTBIN=    /userfs3/amoeba/bin
  70.  
  71. install::    klok.X
  72.         install -s -m 755 klok.X $(DESTBIN)/klok
  73.  
  74. tetris:        tetris.X
  75.         mv tetris.X tetris
  76.  
  77. # End Make.conf
  78. # Begin Rules
  79. all:        Makefile
  80.  
  81. Makefile:    $(CONF)/Generic $(CONF)/Rules $(CONF)/mkmk Make.conf
  82.         @echo "Makefile out-of-date -- rerun $(CONF)/mkmk"; exit 1
  83.  
  84. depend:        $(SRCS)
  85.         $(CONF)/mkdep $(CPPFLAGS) $(SRCS) >@mkdep
  86.  
  87. tags:        $(SRCS) $(HDRS)
  88.         ctags -w $(SRCS) $(HDRS)
  89.  
  90. clean::
  91.         -rm -f core *.o [,@#]*
  92.  
  93. clobber::    clean
  94.         -rm -f lib.a tags *.[A-Z]
  95.  
  96. lint:        $(SRCS) $(HDRS)
  97.         $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(SRCS) $(LINTLIBS)
  98. # End Rules
  99. test0.o: test0.c
  100. test0.o: ../h/stdwin.h
  101. test0.o: ../h/stdevent.h
  102. test0.o: ../h/stdtext.h
  103. test1.o: test1.c
  104. test1.o: ../h/stdwin.h
  105. test1.o: ../h/stdevent.h
  106. test1.o: ../h/stdtext.h
  107. test2.o: test2.c
  108. test2.o: ../h/stdwin.h
  109. test2.o: ../h/stdevent.h
  110. test2.o: ../h/stdtext.h
  111. test3.o: test3.c
  112. test3.o: ../h/stdwin.h
  113. test3.o: ../h/stdevent.h
  114. test3.o: ../h/stdtext.h
  115. test4.o: test4.c
  116. test4.o: ../h/stdwin.h
  117. test4.o: ../h/stdevent.h
  118. test4.o: ../h/stdtext.h
  119. thand.o: thand.c
  120. thand.o: ../h/stdwin.h
  121. thand.o: ../h/stdevent.h
  122. thand.o: ../h/stdtext.h
  123. thand.o: /usr/include/signal.h
  124. hello.o: hello.c
  125. hello.o: ../h/stdwin.h
  126. hello.o: ../h/stdevent.h
  127. hello.o: ../h/stdtext.h
  128. bits.o: bits.c
  129. bits.o: ../h/stdwin.h
  130. bits.o: ../h/stdevent.h
  131. bits.o: ../h/stdtext.h
  132. faced.o: faced.c
  133. faced.o: /usr/include/stdio.h
  134. faced.o: ../h/stdwin.h
  135. faced.o: ../h/stdevent.h
  136. faced.o: ../h/stdtext.h
  137. klok.o: klok.c
  138. klok.o: ../h/tools.h
  139. klok.o: ../h/configure.h
  140. klok.o: /usr/include/stdio.h
  141. klok.o: /usr/include/ctype.h
  142. klok.o: /usr/include/strings.h
  143. klok.o: ../h/l_defs.h
  144. klok.o: ../h/stdwin.h
  145. klok.o: ../h/stdevent.h
  146. klok.o: ../h/stdtext.h
  147. klok.o: /usr/include/math.h
  148. klok.o: /usr/include/sys/time.h
  149. klok.o: /usr/include/time.h
  150. klok.o: ./bsdsetdate.c
  151. charset.o: charset.c
  152. charset.o: ../h/tools.h
  153. charset.o: ../h/configure.h
  154. charset.o: /usr/include/stdio.h
  155. charset.o: /usr/include/ctype.h
  156. charset.o: /usr/include/strings.h
  157. charset.o: ../h/l_defs.h
  158. charset.o: ../h/stdwin.h
  159. charset.o: ../h/stdevent.h
  160. charset.o: ../h/stdtext.h
  161. dklok.o: dklok.c
  162. dklok.o: /usr/include/ctype.h
  163. dklok.o: /usr/include/stdio.h
  164. dklok.o: /usr/include/time.h
  165. dklok.o: ../h/stdwin.h
  166. dklok.o: ../h/stdevent.h
  167. dklok.o: ../h/stdtext.h
  168. dklok.o: ./sevenseg.h
  169. vtdemo.o: vtdemo.c
  170. vtdemo.o: ../h/stdwin.h
  171. vtdemo.o: ../h/stdevent.h
  172. vtdemo.o: ../h/stdtext.h
  173. vtdemo.o: ../h/vt.h
  174. tetris.o: tetris.c
  175. tetris.o: ../h/stdwin.h
  176. tetris.o: ../h/stdevent.h
  177. tetris.o: ../h/stdtext.h
  178. tetris.o: /usr/include/stdio.h
  179. testpollevent.o: testpollevent.c
  180. testpollevent.o: /usr/include/stdio.h
  181. testpollevent.o: ../h/stdwin.h
  182. testpollevent.o: ../h/stdevent.h
  183. testpollevent.o: ../h/stdtext.h
  184.